package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoArtCharacteristics;
import com.muyu.danmo.mapper.DanmoArtCharacteristicsMapper;
import com.muyu.danmo.service.IDanmoArtCharacteristicsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 校园特色Service业务层处理
 *
 * @author yangle
 * @date 2024-10-31
 */
@Service
public class DanmoArtCharacteristicsServiceImpl implements IDanmoArtCharacteristicsService
{
    @Autowired
    private DanmoArtCharacteristicsMapper danmoArtCharacteristicsMapper;

    /**
     * 查询校园特色
     *
     * @param id 校园特色主键
     * @return 校园特色
     */
    @Override
    public DanmoArtCharacteristics selectDanmoArtCharacteristicsById(Long id)
    {
        return danmoArtCharacteristicsMapper.selectDanmoArtCharacteristicsById(id);
    }

    /**
     * 查询校园特色列表
     *
     * @param danmoArtCharacteristics 校园特色
     * @return 校园特色
     */
    @Override
    public List<DanmoArtCharacteristics> selectDanmoArtCharacteristicsList(DanmoArtCharacteristics danmoArtCharacteristics)
    {
        return danmoArtCharacteristicsMapper.selectDanmoArtCharacteristicsList(danmoArtCharacteristics);
    }

    /**
     * 新增校园特色
     *
     * @param danmoArtCharacteristics 校园特色
     * @return 结果
     */
    @Override
    public int insertDanmoArtCharacteristics(DanmoArtCharacteristics danmoArtCharacteristics)
    {
        return danmoArtCharacteristicsMapper.insertDanmoArtCharacteristics(danmoArtCharacteristics);
    }

    /**
     * 修改校园特色
     *
     * @param danmoArtCharacteristics 校园特色
     * @return 结果
     */
    @Override
    public int updateDanmoArtCharacteristics(DanmoArtCharacteristics danmoArtCharacteristics)
    {
        return danmoArtCharacteristicsMapper.updateDanmoArtCharacteristics(danmoArtCharacteristics);
    }

    /**
     * 批量删除校园特色
     *
     * @param ids 需要删除的校园特色主键
     * @return 结果
     */
    @Override
    public int deleteDanmoArtCharacteristicsByIds(Long[] ids)
    {
        return danmoArtCharacteristicsMapper.deleteDanmoArtCharacteristicsByIds(ids);
    }

    /**
     * 删除校园特色信息
     *
     * @param id 校园特色主键
     * @return 结果
     */
    @Override
    public int deleteDanmoArtCharacteristicsById(Long id)
    {
        return danmoArtCharacteristicsMapper.deleteDanmoArtCharacteristicsById(id);
    }

    public List<Long> selectDanmoArtCollegesCharacteristicsList(List<Long> danmoArtCollegesCharacteristicsList) {
        return danmoArtCharacteristicsMapper.selectDanmoArtCollegesCharacteristicsList(danmoArtCollegesCharacteristicsList);
    }

}
